package com.myplans.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class SignInUserEvent extends GwtEvent<SignInUserEventHandler> {
	private String email;
	private String password;
	public static Type<SignInUserEventHandler> TYPE = new Type<SignInUserEventHandler>();

	public SignInUserEvent(String email, String password) {
		this.email = email;
		this.password = password;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<SignInUserEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(SignInUserEventHandler handler) {
		handler.onSignInUser(this);

	}

	public String getEmail() {
		return email;
	}
	
	public String getPassword() {
		return password;
	}
}
